<div id="rec<?php echo $data->diary_id; ?>" class="view">
	<div class="<?php switch ($data->comp_type) { case '0': echo 'recHdrActive'; break; case '1': echo 'recHdrClosed'; break; case '2': echo 'recHdrCancelled'; break; } ?>">
	    <?php echo CHtml::encode($data->rec_date); ?>
	</div>
	<div>
	    <?php echo CHtml::encode($data->Text->txt); ?>
	</div>
	<?php if ($data->comp_type != '0'): ?>
	<hr />
	<div class="recComplTxt">
		<?php echo CHtml::encode($data->CompText->txt); ?>
	</div>
	<?php endif; ?>
</div>